package com.example.clooweather.util;

/**
 * Created by 李明洋~ on 2018/3/17.
 */

import android.content.Context;

public class DisplayUtils
{

    public static int dp2px(Context context, float dpValue)
    {
        float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}